*{
    padding: 0;
    margin: 0;
}
body{
    background-color: #222;
    height: 100vh;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: -3;
}
ul{
    background-color: #222; 
    box-shadow: 0 0 10px 3px #111;
    color: #bbb;
}


ul li{
    position: relative;
    text-decoration: none;
    list-style-type: none;
    font-family: "monospace";
    font-size: 1.2rem;
    padding:1rem;
    transition: 0.5s;
    z-index: 0;
}

ul li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #afa;
    /* Y轴缩放为0 */
    z-index: -1;
    transform: scaleY(0);    
    transition: transform 0.5s;
    transform-origin: bottom;
}

ul li:hover{
    cursor: pointer;
    color:#111;
}

ul li:hover::before{
    /* Y轴缩放为0 */
    transform: scaleY(1);    
    transition: transform 0.5s;
    transform-origin: top;
}


ul li::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #afa;
    /* Y轴缩放为0 */
    z-index: -2;
    transform: scaleY(0);    
    transition: transform 0.5s;
    transform-origin: bottom;
    filter: blur(1rem);
}

ul li:hover::after{
    /* Y轴缩放为0 */
    transform: scaleY(1);    
    transition: transform 0.5s;
    transform-origin: top;
}
